package com.gzist.elderlyserviceplatform.service;

import com.gzist.elderlyserviceplatform.entity.dto.ChunkUploadDTO;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;
import java.util.Map;


/**
 * minio文件服务
 */
public interface MinioFileService {

    String uploadFile(MultipartFile file);

    String uploadFileByStream(InputStream inputStream, String fileType, String fileName);

    String uploadImage(String imageBase64);

    void deleteFile(String id);

    void deleteFiles(List<String> ids);

    String getFileUrl(String id);

    Map<String, Object> checkChunkStatus(String fileMd5, Integer totalChunks);

    String uploadChunkAndMerge(MultipartFile chunk,ChunkUploadDTO dto);

}
